#include <stdio.h>
int main()
{
    int n,a,i,t;
    scanf("%d",&n);
    while (n--)
    {
        t=3;
        scanf("%d",&a);
        for (i=0;i<a;i++)t=(t-1)*2;
        printf("%d\n",t);
    }
    return 0;
}
